package com.tangcl.module_mine.network

import com.tangcl.module_base.network.RetrofitManager
import com.tangcl.module_mine.bean.UserInfo

/**
 * Created by TCL on 2021/10/14
 *
 * description:
 */
class MineProjectRepo {
    private lateinit var mService: MineApiService

    init {
        mService = RetrofitManager.initRetrofit().getService(MineApiService::class.java)
    }

    suspend fun userLogin(userName: String, password: String): UserInfo {
        val paramsMap = HashMap<String, String>()
        paramsMap["username"] = userName
        paramsMap["password"] = password
        return mService.doLoginResponse(paramsMap).data!!
    }

}